package com.tarena.practice.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

	/*
	 * 跳转到首页
	 */
	@RequestMapping("/index")
	public String goIndex() {
		return "index";
	}

	/*
	 * 跳转到首页
	 */
	@RequestMapping("/user/login")
	public String goLogin() {
		return "login";
	}
	
	/*
	 * 跳转到注册页面
	 */
	@RequestMapping("user/register")
	public String goRegister() {
		return "register";
	}
}